package com.crawler.search.index.keyword;


public enum KeywordType {
    must, should, mustNot;

    public static KeywordType from(String item) {
        switch (item) {
            case "&":
                return KeywordType.must;
            case "|":
                return KeywordType.should;
            case "!":
                return KeywordType.mustNot;
            default:
                return KeywordType.must;
        }

    }
}